package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 员工信息
 */
@Data
@TableName("staff_message")
@Document(indexName = "staff",type = "doc")
public class StaffEntity {
    @Id
    @Field(type = FieldType.Integer)
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Field(type = FieldType.Text)
    private String  staffcard;//员工卡号
    @Field(type = FieldType.Text)
    private String  name;//姓名
    @Field(type = FieldType.Text)
    private String  phone;//手机号
    @Field(type = FieldType.Text)
    private String  companyname;//所在公司名称
    @Field(type = FieldType.Text)
    private String  identity;//身份
    @Field(type = FieldType.Text)
    private String  idcard;  //身份证号
    @Field(type = FieldType.Text)
    private String  staffstate;//状态


    @Field(type = FieldType.Text)
    private Integer  companyid;//所在公司名称
}
